<!--{template common/header_ajax}-->
	<script type="text/javascript">
		if(!isUndefined(checkForumnew_handle)) {
			clearTimeout(checkForumnew_handle);
		}
		<!--{if $threadlist}-->
			if($('separatorline')) {
				var table = $('separatorline').parentNode;
			} else {
				var table = $('forum_' + $fid);
			}
			var newthread = [];
			<!--{eval $i = 0;}-->
			<!--{loop $threadlist $thread}-->
				newthread[{$i}] = {'tid':$thread[tid], 'thread': {'icn':{'className':'avt','val':<!--{if $thread['authorid'] && $thread['author']}-->'<a href="home.php?mod=space&uid=$thread[authorid]"><img src="{avatar($thread[authorid],small,true)}" onerror="this.onerror=null;this.src=\'{$_G[setting][ucenterurl]}/images/noavatar_middle.gif\'" /></a>'<!--{else}-->'<img src="{$_G[style][styleimgdir]}/hidden.gif" title="$_G[setting][anonymoustext]" alt="$_G[setting][anonymoustext]" />'<!--{/if}-->}<!--{if $_G['forum']['ismoderator']}-->, 'o':{'className':'o','val':'<input type="checkbox" value="{$thread[tid]}" name="moderate[]" onclick="tmodclick(this)">'}<!--{/if}--> ,'common':{'className':'new','val':'$thread[threadurl]<p class="mtn xg1">$thread[authorurl] &nbsp; 发表于 $thread[dateline] &nbsp; 查看: $thread[views] &nbsp; 回复: <a href="forum.php?mod=viewthread&tid={$thread[tid]}">{$thread[replies]}</a></p>'},'lastpost':{'className':'by','val':'<cite class="mbm"><!--{if $thread[lastposter]}-->$thread[lastposterurl]<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite><em><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost">{$thread[lastpost]}</a></em>'}}};
				<!--{eval $i++;}-->
			<!--{/loop}-->
			removetbodyrow(table, 'forumnewshow');
			for(var i = 0; i < newthread.length; i++) {
				if(newthread[i].tid) {
					addtbodyrow(table, ['tbody', 'newthread'], ['normalthread_', 'normalthread_'], 'separatorline', newthread[i]);
				}
			}
			function readthread(tid) {
				if($("checknewthread_"+tid)) {
					$("checknewthread_"+tid).className = "";
				}
			}
		<!--{elseif !$threadlist && $_GET['uncheck'] == 2}-->
			showDialog('{lang none_newthread}', 'notice', null, null, 0, null, null, null, null, 3);
		<!--{/if}-->
		checkForumnew_handle = setTimeout(function () {checkForumnew('{$fid}', '{$_G[timestamp]}');}, checkForumtimeout);
	</script>
<!--{template common/footer_ajax}-->